package com.gitee.wsl.struct.tree.builder

interface TreeGeneratorScope<T> {
    fun addNode(data: T, id: Any? = null, childrenGenerator: ChildrenGeneratorScope<T>.() -> Unit = {})

    fun addLeaf(data: T, id: Any? = null)

    fun add(element: LinkTreeBuilder.Element<T>)
}